package com.blb.community.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.blb.community.entity.SysDept;
import com.blb.community.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author 帅帅
 * @Date 2022/7/4 22:22
 * @PackageName:com.blb.community.entity.vo
 * @ClassName: SysUserVO
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUserVO extends SysUser {

    @ExcelIgnore
    @ApiModelProperty("岗位ID")
    private List<Integer> postIds;

    @ExcelIgnore
    @ApiModelProperty("角色ID")
    private List<Integer> roleIds;

    @ApiModelProperty("部门")
    @ExcelProperty("部门编号")
    @ExcelIgnore
    private SysDept dept;

    /**
     * 当前页
     */

    @ExcelIgnore
    private Integer pageCount;
    /**
     * 显示几条
     */
    @ExcelIgnore
    private Integer pageSize;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private LocalDateTime beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelIgnore
    private LocalDateTime endTime;
}
